﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NRainel.Data.Entity
{
    [AttributeUsage(AttributeTargets.Property,AllowMultiple = false,Inherited = true)]
    public class ColumnAssociationAttribute:Attribute
    {
        private string _columnName;
        private bool _isColumn;

        public ColumnAssociationAttribute()
        { }

        public ColumnAssociationAttribute(string columnName)
        {
            _columnName = columnName;
            _isColumn = true;
        }

        public bool IsColumn
        {
            set { _isColumn = value; }
            get { return _isColumn; }
        }


        
    }
}
